import host as f
from log import log_set
import pytest

if __name__ == '__main__':
    log_set()
    pytest.main(["test_home.py",'-s',"--alluredir=./data","--clean-alluredir"])
    import os
    os.system(r"allure generate ./data -o htmlreport --clean")
    f.sent_email(['./log.log',r"C:\Users\张震海\Desktop\dfs\homework\htmlreport\index.html"])